/**
 * By Alpha
 * Author: alixez <alixe.z@foxmail.com>
 * Date: 2017/10/28
 */
import { request, config } from 'utils';

const { apiPrefix } = config;

export async function query (params) {
  params.key = 'i7sau1babuzwhycn';
  return request({
    url: `${apiPrefix}/weather/now.json`,
    method: 'get',
    data: params,
  });
}
